package com.lms.logistics_management_system.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;

import java.time.LocalDateTime;

@Data
@NoArgsConstructor  //自动创建无参构造
@AllArgsConstructor //自动创建有参构造
//mybatis-plus会直接去数据库中查找，名字必须一致或者用tablename
@TableName(value = "queue_condition")
@ToString
public class QueueCondition {
    @TableId(type=IdType.AUTO)
    @TableField(value = "reservation_id")
    private Integer reservationId;

    @TableField(value = "department_id")
    private Integer departmentId;

    @TableField(value = "room_id")
    private Integer roomId;

    @TableField(value = "queue_condition_entry_time")
    private LocalDateTime queueConditionEntryTime;
}
